package com.j4dream.property.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@NoArgsConstructor
@Data
public class RoleDto implements Serializable {

    private static final long serialVersionUID = 6799733814493281777L;
    private int id;
    private String name;
    private List<PermissionDto> permissions = new ArrayList<>();

    public RoleDto(String name) {
        this.name = name;
    }
}
